package forcollege.xly.com.xian.view;

import android.os.Bundle;

import forcollege.xly.com.xian.BR;
import forcollege.xly.com.xian.R;
import forcollege.xly.com.xian.base.BaseActivity;
import forcollege.xly.com.xian.databinding.ActivityMainBinding;
import forcollege.xly.com.xian.viewmodel.MainViewModel;

public class MainActivity extends BaseActivity<ActivityMainBinding, MainViewModel> {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected int initVariableId() {
        return BR.viewModel;
    }

    @Override
    protected int initContentView() {
        return R.layout.activity_main;
    }

    @Override
    public MainViewModel initViewModel() {
        return new MainViewModel(this);
    }
}
